package com.session1;

public class Main {
    public static void main(String[] args) {
        Animal cat = new Cat("鱼", "喵喵");
        Animal dog = new Dog("骨头", "汪汪");
        Animal bird = new Bird("虫子", "叽叽喳喳");
        Animal whale = new Whale("鱼", "嘤嘤");

        Feeder feeder = new Feeder();
        feeder.feedAnimal(cat);
        feeder.feedAnimal(dog);
        feeder.feedAnimal(bird);
        feeder.feedAnimal(whale);
    }
}
